package cz.matasek.dbLogger.exception;

/**
 * Thrown to indicate that history logging is not active for selected table.
 *
 * @author Luboš Matásek
 */
public class HistoryLoggingInactive extends DbLoggerRuntimeException {

    /**
     * Default exception message.
     */
    private static final String EXCEPTION_MESSAGE = "has not active full history logging";
    /**
     * Serial version UID.
     */
    private static final long serialVersionUID = 1893154643607413516L;

    /**
     * Constructs an instance of <code>HistoryLoggingInactive</code> with
     * the message containing name of the table, exception has been thrown on.
     *
     * @param tableName table, exception has been thrown on
     */
    public HistoryLoggingInactive(String tableName) {
        super(tableName + " " + HistoryLoggingInactive.EXCEPTION_MESSAGE);
    }
}
